package com.ruoyi.btlfbreed.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 肉鸡孵化记录对象 tb_chicken_hatch_records
 * 
 * @author cpdeman
 * @date 2024-05-05
 */
public class TbChickenHatchRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 孵化批次编号 */
    @Excel(name = "孵化批次编号")
    private String hatchBatchNo;

    /** 孵化开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "孵化开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date hatchStartTime;

    /** 孵化结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "孵化结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date hatchEndTime;

    /** 孵化数量 */
    @Excel(name = "孵化数量")
    private Long totalEggs;

    /** 孵化成功数量 */
    @Excel(name = "孵化成功数量")
    private Long hatchedChicks;

    /** 死亡数量 */
    @Excel(name = "死亡数量")
    private Long deadEggs;

    /** 孵化率 */
    @Excel(name = "孵化率")
    private double hatchRate;

    /** 死亡率 */
    @Excel(name = "死亡率")
    private double mortalityRate;

    /** 育种员 */
    private Long userId;
    @Excel(name = "饲养员")
    private  String userName;

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    /** 肉鸡信息 */
    private List<TbChickens> tbChickensList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setHatchBatchNo(String hatchBatchNo) 
    {
        this.hatchBatchNo = hatchBatchNo;
    }

    public String getHatchBatchNo() 
    {
        return hatchBatchNo;
    }
    public void setHatchStartTime(Date hatchStartTime) 
    {
        this.hatchStartTime = hatchStartTime;
    }

    public Date getHatchStartTime() 
    {
        return hatchStartTime;
    }
    public void setHatchEndTime(Date hatchEndTime) 
    {
        this.hatchEndTime = hatchEndTime;
    }

    public Date getHatchEndTime() 
    {
        return hatchEndTime;
    }
    public void setTotalEggs(Long totalEggs) 
    {
        this.totalEggs = totalEggs;
    }

    public Long getTotalEggs() 
    {
        return totalEggs;
    }
    public void setHatchedChicks(Long hatchedChicks) 
    {
        this.hatchedChicks = hatchedChicks;
    }

    public Long getHatchedChicks() 
    {
        return hatchedChicks;
    }
    public void setDeadEggs(Long deadEggs) 
    {
        this.deadEggs = deadEggs;
    }

    public Long getDeadEggs() 
    {
        return deadEggs;
    }
    public void setHatchRate(double hatchRate)
    {
        this.hatchRate = hatchRate;
    }

    public double getHatchRate()
    {
        return hatchRate;
    }
    public void setMortalityRate(double mortalityRate)
    {
        this.mortalityRate = mortalityRate;
    }

    public double getMortalityRate()
    {
        return mortalityRate;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<TbChickens> getTbChickensList()
    {
        return tbChickensList;
    }

    public void setTbChickensList(List<TbChickens> tbChickensList)
    {
        this.tbChickensList = tbChickensList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("hatchBatchNo", getHatchBatchNo())
            .append("hatchStartTime", getHatchStartTime())
            .append("hatchEndTime", getHatchEndTime())
            .append("totalEggs", getTotalEggs())
            .append("hatchedChicks", getHatchedChicks())
            .append("deadEggs", getDeadEggs())
            .append("hatchRate", getHatchRate())
            .append("mortalityRate", getMortalityRate())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("tbChickensList", getTbChickensList())
            .toString();
    }
}
